docs: generate llms.txt and llms-full.txt#465
Conversation
Add vitepress-plugin-llms to produce llms.txt (a curated, sidebar-ordered index) and llms-full.txt (full docs concatenated) at build time, served at docs.plane.so/llms.txt and /llms-full.txt for LLM/GEO consumption. - Plugin owns llms.txt / llms-full.txt only; the existing buildEnd .md copy still serves the Accept: text/markdown rewrite, so per-page generation is disabled to avoid overlap. - domain set for absolute URLs; richer description/details for the index. - noindex / search:false pages excluded via ignoreFiles. - injectLLMHint disabled to keep rendered pages untouched.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdds ChangesLLM text output integration
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What
Adds
llms.txtandllms-full.txtto the docs site, generated at build time and served at:These give LLMs and AI search engines (ChatGPT, Perplexity, AI Overviews) a clean, structured view of the documentation.
How
Uses
vitepress-plugin-llmswired intovite.pluginsindocs/.vitepress/config.ts:domainset tohttps://docs.plane.sofor absolute URLs in the index.description/detailsprovide a richer, spec-compliant blockquote + summary.generateLLMFriendlyDocsForEachPage: false— the existingbuildEndhook already copies per-page.mdintodist/for theAccept: text/markdownrewrite invercel.json, so the plugin owns only the two aggregate files (no overlap).injectLLMHint: false— rendered pages are left untouched.ignoreFiles— the threenoindex/search: falsepages (core-concepts/issues,core-concepts/projects/run-project,importers/github-imp) are excluded, matching their search-engine treatment.Output
llms.txt: 113 documentation links (~6.6K tokens, ~25 kB)llms-full.txt: 113 pages (~180K tokens, ~762 kB)Both files are emitted into the gitignored
dist/on everypnpm build, so they always stay in sync with the docs — nothing to maintain by hand.Notes
pnpm check:formatpasses.llms.txt, so external sidebar links (Developer docs, Blog, marketplace) are not included — can add a custom template later if we want them.Summary by CodeRabbit